Skip to content

feat: Add integration test workflow running on KinD - #1381

Open
ZPascal wants to merge 1 commit into
cloudfoundry:5.x.xfrom
ZPascal:gh-integration-test-matrix
Open

ZPascal wants to merge 1 commit into
cloudfoundry:5.x.xfrom
ZPascal:gh-integration-test-matrix

Conversation

@ZPascal

@ZPascal ZPascal commented Oct 3, 2026 •

Copy link
Copy Markdown

Adds a workflow that runs the integration tests against a Cloud Foundry on KinD (using kind-deployment) on Java 21 (default). Every matrix job deploys its own Cloud Foundry, so they run in parallel.

The workflow is integration-test.yml and runs ./mvnw -Pintegration-test test. It is triggered

  • nightly on weekdays (latest versions, Java 21 only, no forks, and the default branch is used at the cron job)
  • manually via workflow_dispatch, optionally with preview
  • from ci-java.yml after the build job (Java 21)

Normal runs deploy the capi-release that matches SUPPORTED_API_VERSION. .github/scripts/resolve-capi-version.sh looks it up, and the workflow passes it to kind-deployment as a chart version override. Preview runs use the latest versions.

PostgreSQL connections

All CF components share one PostgreSQL, and its default of 100 connections runs out during a full test run (too many clients already). After that, UAA fails, and every subsequent test context fails too. kind-deployment has no input for this, but since cloudfoundry/kind-deployment#516 the postgresql value is passed on to the PostgreSQL chart. So the workflow writes a values file with max_connections = 500 and hands it to setup-cf via additional-values-files.

Dependencies

Connected PR

#1383

@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch 7 times, most recently from 6b1c866 to fffcc32 Compare October 5, 2026 11:32
@Lokowandtg

Copy link
Copy Markdown
Contributor

The failures because of "suspended" where addressed with #1371

@Lokowandtg

Copy link
Copy Markdown
Contributor

The failures because of "missing :resources" might be a problem in kind? As a workaround I added the following line to https://github.com/cloudfoundry/cf-k8s-releases/blob/4500c9dec5007c5c86c630bb86c3bb596e98259c/capi/helm/files/nginx/nginx_external_endpoints.conf#L47
upload_set_form_field "resources" [];
resulting in running tests.

@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch 3 times, most recently from 37647e0 to dea93e2 Compare October 7, 2026 20:22
@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch 2 times, most recently from 127d129 to cc8c779 Compare October 8, 2026 04:53
@ZPascal
ZPascal marked this pull request as ready for review October 8, 2026 04:55
@ZPascal
ZPascal changed the base branch from main to 5.x.x October 8, 2026 05:50
@ZPascal
ZPascal changed the base branch from 5.x.x to main October 8, 2026 05:50
@ZPascal
ZPascal changed the base branch from main to 5.x.x October 10, 2026 07:38
@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch from cc8c779 to 9e0904c Compare October 10, 2026 07:40
@ZPascal ZPascal changed the title Add GitHub workflow for integration tests on multiple Java versions Add integration test workflow running on KinD with Java 8, 11, 17 and 21 Oct 10, 2026
@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch 4 times, most recently from e84992e to 6f391be Compare October 10, 2026 09:33
@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch from 6f391be to 3979346 Compare October 10, 2026 09:36
@ZPascal ZPascal changed the title Add integration test workflow running on KinD with Java 8, 11, 17 and 21 feat: Add integration test workflow running on KinD Oct 10, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants